﻿using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(FL.WebUI.Connections.Startup))]

namespace FL.WebUI.Connections
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            // 有关如何配置应用程序的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkID=316888
            app.MapSignalR<ChatConnections>("/Connections/ChatConnections");
            //app.Map("/echo",
            //map =>
            //{
            //    map.UseCors(CorsOptions.AllowAll);//跨域访问
            //    map.RunSignalR<ChatConnections>();

            //});
        }
    }
}
